package cn.gson.crm.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import lombok.Data;

/**
 * 项目成员表
 * @author john
 *
 */
@Entity
@Table(name="tb_jx_project_members")
@Data
public class ProjectMembers {
	//编号
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="tb_project_members_id")
	private Long id;
	
	//组员名
	@OneToOne
	@JoinColumn(name="student_id")
	private Student student;
	
	//组长id。
	@ManyToOne
	@JoinColumn(name="project_leader_id")
	private ProjectLeader projectLeader;
	
	private Boolean deleted;
}
